<%--
  Created by IntelliJ IDEA.
  User: yx
  Date: 2019/1/2
  Time: 12:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ include file="../include/admincontent.jsp" %>
<style>
    .inputform tbody .radio1 span {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .inputform tbody .radio1 span input[type=checkbox] {
        display: none;
    }
</style>
<div id="Content">
    <form id="pwdForm" method="post" action="/SysAdmin/saveChangePwd">
        <div class="btnbar">
            <button type="submit" class="save"><em class="ico16 sort_text_16"></em>保 存</button>
            <button  class="save" onclick="javascript:history.back();"><em class="ico16 refresh_16"></em>返 回</button>
        </div>
        <table class="treeTable inputform">
            <tbody>
            <tr>
                <td width="80">原密码：</td>
                <td><input type="password" name="upwd" datatype="*" nullmsg="原密码不能为空！"/></td>
            </tr>
            <tr>
                <td>新密码：</td>
                <td><input type="password" name="nupwd" datatype="*" nullmsg="新密码不能为空！"/></td>
            </tr>
            <tr>
                <td>确认密码：</td>
                <td><input type="password" name="nupwd2" datatype="*" recheck="nupwd" errormsg="您两次输入的账号密码不一致！"/></td>
            </tr>
            </tbody>
        </table>
    </form>
</div>
<script>
    $("#pwdForm").Validform({
        ajaxPost: true,
        callback: function (data) {
            if (data.url != 'no') {
                $.Showmsg(data.Message + ' 马上跳转...');

                setTimeout(function () {
                    if (data.state) {
                        $.Hidemsg();
                    }
                    if (data.url != 'no') {
                        location = data.url;
                    }
                }, 2000);
            } else {
                $.Showmsg(data.Message);
            }

        }
    });

</script>
</body>
</html>
